<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <title>搜索</title>
    <link rel="stylesheet" type="text/css" href="__CSS__/api.css"/>
    <link rel="stylesheet" type="text/css" href="__CSS__/aui.css"/>
    <style>
        input[type='text'] {
            height: 32px;
            background: #FFFFFF;
            border-radius: 16px;
            margin-top: 6px;
            color: #000;
        }

        input[type='text']:-webkit-input-placeholder {
            color: #BFBFBF;
            /*line-height: 20px;*/
            font-size: 14px;
        }

        .aui-bar-nav {
            background: #62C3D0;
        }

        .aui-icon-tu {
            height: 2.2rem;
            width: 44px;
            background: url(__IMG__/left2.png) no-repeat center center;
            background-size: 44px 44px;
        }

        .aui-bar-nav .aui-pull-left {
            padding-left: 0;
        }

        .aui-bar-nav .aui-iconfont {
            position: relative;
            z-index: 20;
            font-size: 14px;
            font-weight: 400;
            color: #FFFFFF;
            line-height: 44px;
        }

        .aui-bar-nav .aui-title {
            left: 50px;
            right: 50px;
            /*height: 44px !important;*/
            min-height: 2.2rem;
        }

        .aui-bar-nav {
            line-height: 44px;
        }

        .aui-bar {
            min-height: 44px;
        }

        .all {
            padding: 0.8rem 0.75rem;
        }

        .box {
            background: #FFFFFF;
            box-shadow: 0px 2px 15px 0px rgba(236, 236, 236, 0.5);
            border-radius: 4px;
            padding-left: 0.55rem;
            padding-right: 0.6rem;
            margin-bottom: 0.75rem;
        }

        .top {
            padding-top: 0.55rem;
            padding-bottom: 0.85rem;
            font-size: 14px;
            font-weight: 400;
            color: #979797;
        }

        .person {
            font-size: 18px;
            font-weight: 400;
            color: #000000;
            align-items: center;
            margin-bottom: 0.4rem;
        }

        .avatar {
            width: 1.2rem;
            height: 1.2rem;
            margin-right: 0.2rem;
        }

        .arrow {
            width: 0.6rem;
            height: 0.6rem;
        }

        .center {
            margin-left: 0.9rem;
        }

        .status1 {
            font-size: 14px;
            font-weight: 400;
            color: #32C994;
        }

        .status2 {
            font-size: 14px;
            font-weight: 400;
            color: #62C3D0;
        }

        .status3 {
            font-size: 14px;
            font-weight: 400;
            color: #B2B2B2;
        }

        .btn {
            padding: 0.5rem 0;
        }

        .button {
            width: 3.25rem;
            height: 1.1rem;
            background: #62C3D0;
            border-radius: 12px;
            text-align: center;
            line-height: 1.1rem;
            font-size: 12px;
            font-weight: 500;
            color: #FFFFFF;
        }

    </style>
</head>

<body>
{if $userInitInfo.user_search == 1}
<br/>
&nbsp;&nbsp;&nbsp;&nbsp;您没有查询权限，请联系管理员开通！
{else /}

<header class="aui-bar aui-bar-nav underLine" id="header">
    <a class="aui-pull-left" tapmode="active" onclick=""> <span class="aui-iconfont aui-icon-tu"> </span> </a>
    <div class="aui-title"><input type="text" id="search" name="keyword" value="{$keyword}" placeholder='商家名字|联系人|电话|地址'></div>
    <a class="aui-pull-right">
        <span class="aui-iconfont" onclick="searchList();">搜索</span>
    </a>
</header>

<div class="all">
    <!-- 待加盟 -->
    {if $data}
    {volist name='data' id='d'}
    <div class="box">
        <div class="top" onclick="openInfo({$d.s_id})">
            <div class="person flex-wrap">
                <img src="__IMG__/people.png" class="avatar">
                <div class="flex-con aui-ellipsis-1">{$d.s_com_name}</div>
                <img src="__IMG__/arrow.png" class="arrow">
            </div>
            <div class="flex-wrap">
                <div>报备人：{$d.s_u_name}</div>
                <!--<div class="center">内部老师姓名：{$d.s_inside_name}</div>-->
                <div class="flex-con"></div>
                {if $d.s_status == 1}<div class="status1">待加盟</div>{/if}
                {if $d.s_status == 2}<div class="status2">已加盟</div>{/if}
                {if $d.s_status >= 3}<div class="status3">已过期</div>{/if}
            </div>
            <div class="flex-wrap">
                <div style="margin-top: 5px;margin-bottom: -5px">内部老师姓名：{$d.s_inside_name}</div>
            </div>
        </div>
        <!--<div class="btn flex-wrap topLine">-->
            <!--<div class="flex-con"></div>-->
            <!--<div class="button" onclick="shopUpdate(1)">更新报备</div>-->
        <!--</div>-->
    </div>
    {/volist}
    {/if}
    {if !$data}
    <div class="seat" id="seatAll">
        <img src="__IMG__/quesheng/no_content.png" class="seatImg"/>
        <div class="seatName">没有符合条件的内容</div>
    </div>
    {/if}
</div>
{/if}
</body>
{include file="public/footer" /}
</html>
<script type="text/javascript">
    function searchList() {
        var keyword = $('#search').val().trim();
        if(keyword == ''){
            layer.open({
                content: '关键字不能为空'
                ,skin: 'msg'
                ,time: 2 //2秒后自动关闭
            });
        }else{
            window.location.href = '/index/Seelist/index?keyword=' + keyword;
        }

    }
    $('.aui-pull-left').click(function () {
        history.go(-1);
    });
    function openInfo(sid) {
        window.location.href = '/index/My/info?sid=' + sid;
    }
</script>

